//vuex的计算属性
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 用户头像
  avatar: state => state.user.userInfo.staffPhoto,
  // 用户名字
  name: state => state.user.userInfo.username,
  // 用户id
  userId: state => state.user.userInfo.userId,
  //公司id
  companyId: state => state.user.userInfo.companyId,
  
}
export default getters
